package com.louzhu.gulimall.product.feign;

import com.louzhu.common.to.es.SkuEsModel;
import com.louzhu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 远程调用ES检索服务接口
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    /**
     * 调用ES检索服务的商品保存接口
     * @param skuEsModelList
     * @return
     */
    @PostMapping("/search/save/product")
    public R productUp(@RequestBody List<SkuEsModel> skuEsModelList);
}
